home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat3
/
f90
/
secondr.z
/
secondr
Wrap
Text File
|
1998-10-30
|
2KB
|
53 lines
SECONDR(3F) Last changed: 2-24-98
NNAAMMEE
SSEECCOONNDDRR - Returns elapsed wall-clock time in seconds
SSYYNNOOPPSSIISS
All systems:
RREEAALL ((KKIINNDD==88)) SSEECCOONNDDRR
_t_i_m_e=SSEECCOONNDDRR(( ))
UNICOS systems:
CCAALLLL SSEECCOONNDDRR((_t_i_m_e))
IIMMPPLLEEMMEENNTTAATTIIOONN
UNICOS, UNICOS/mk, and IRIX systems
DDEESSCCRRIIPPTTIIOONN
On IRIX systems, this routine is in lliibbffffiioo..ssoo which is linked by
default when compiling programs with the MIPSpro 7 Fortran 90 compiler
or when compiling programs with the --ccrraayylliibbss option to the MIPSpro
7.2 F77 compiler.
SSEECCOONNDDRR can be called several times during the execution of a program
to determine the amount of elapsed wall-clock time.
_t_i_m_e is the real-time clock values in floating-point seconds. If the
value of the real-time clock exceeds 48 bits, some accuracy may be
lost during the conversion to float. The argument must be of type
real with KKIINNDD==88.
On UNICOS/mk systems, the real-time clocks on processing elements are
not synchronized with each other. Therefore, a SSEECCOONNDDRR() value should
not be compared to a previous SSEECCOONNDDRR() taken on a different
processing element.
EEXXAAMMPPLLEESS
This example calculates the elapsed wall-clock time from the first
call to SSEECCOONNDDRR until the second call to SSEECCOONNDDRR.
BEFORE = SECONDR( )
CALL DOWORK ( )
AFTER = SECONDR( )
WALTIM = AFTER - BEFORE
SSEEEE AALLSSOO
RRTTCC(3I), SSEECCOONNDD(3F), TTIIMMEEFF(3F), TTSSEECCNNDD(3F)
_A_p_p_l_i_c_a_t_i_o_n _P_r_o_g_r_a_m_m_e_r'_s _L_i_b_r_a_r_y _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication
SR-2165, for the printed version of this man page.